<template>
  <div>
    <pstep :stepData="stepData" :doneNum="doneNum"  style="margin-bottom: 20px;"></pstep>
    <!-- 第一步 -->
    <div v-show="doneNum===1">
      <pscForm></pscForm>
      <div class="step-btn-box">
        <el-button type="primary" @click="handleAdd">立即申请</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import pstep from '@/components/publicStep'
import pscForm from './form'
export default {
  components:{pstep,pscForm},
  data() {
      return {
        stepData:[{num:1,nameIn:'1',nameOut:'基础配置'}
        ],
        doneNum:1,
      }
    },
    methods: {
      handleAdd() {
        console.log('submit!');
        let params = {
          key:'phyRes_physical',
          name:'123123',
          data:JSON.stringify({})
        }
        // this.$api.apiFormAdd(params).then(res=>{
        //   console.log('~~~~~~~~',res)
        // })
        // 发送请求
        // 返回列表页
        this.$router.push({path:'/saveresource/distSave'})
      }
    }

}
</script>

<style scoped lang="less">

</style>
